﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Chung/QLSV.Master" AutoEventWireup="true" CodeBehind="SinhVien.aspx.cs" Inherits="proRFID_DiemDanh.SinhVien.SinhVien" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
    <link href="CssSinhVien.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentMain" runat="server">
<div style="text-align:center; width:100%" >
    <fieldset style="width:700px;">
        <legend>Danh sách sinh viên</legend>
        <table align="center" cellpadding="0" cellspacing="0" class="border" style="text-align: center">
        <tr>
            <td>
                <table>
                    <tr>
                        <th width="50px">Mã SV</th>
                        <th width="250px">Họ</th>
                        <th width="150px">Tên</th>
                        <th width="50px">Mã thẻ</th>
                        <th width="30px">Sửa</th>
                        <th width="30px">Xóa</th>
                    </tr>
                    <asp:Repeater ID="rpt_danhsach" runat="server">
                        <ItemTemplate>
                            <tr >
                                <td>
                                    <%#Eval("MASV") %>
                                </td>
                                <td>
                                    <%#Eval("HOSV") %>
                                </td>
                                <td>
                                    <%#Eval("TENSV")%>
                                </td>
                                <td>
                                    <%#Eval("MATHE") %>
                                </td>
                                <td>                                            
                                    <a  href="/SinhVien/SuaSinhVien.aspx?ID=<%#Eval("MASV")%>&ho=<%#Eval("HOSV") %>&ten=<%#Eval("TENSV") %>&mathe=<%#Eval("MATHE") %>"><img src="../Chung/img/edit.png" width="15px"/></a>
                                </td>
                                <td>
                                    <input name="xoa" type="checkbox" value=<%#Eval("MASV")%> />
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>                                
                </table>
            </td>
        </tr>
        <tr>
            <td style="text-align:right; padding:5px 10px 5px">
                <asp:Button ID="cmd_themexcel" runat="server" onclick="cmd_themexcel_Click" 
                    Text="File Excel" />
                <asp:ImageButton ID="cmdThem" runat="server" ImageUrl="~/Chung/img/add.png" 
                        CssClass="nutnhan" onclick="cmd_them_Click"/>
                <asp:ImageButton ID="cmdXoa" runat="server"  ImageUrl="~/Chung/img/delete.png" 
                        CssClass="nutnhan" onclick="cmd_xoa_Click"/>
            </td>
        </tr>
    </table>
    </fieldset>
</div>
</asp:Content>
